
# build dubbo-samples-spring-boot-provider
git pull
cp .mvn/settings.xml ~/.m2/
chmod +x ./mvnw
./mvnw clean package -U -DskipTests

docker build --build-arg APP_DIR=dubbo-samples-spring-boot-provider --build-arg APP_PORT=50051 --build-arg APP_FILE=dubbo-samples-spring-boot-provider-1.0.jar -f ./Dockerfile -t dubbo/dubbo-samples-spring-boot-provider:1.0 ./

# build dubbo-samples-spring-boot-consumer
docker build --build-arg APP_DIR=dubbo-samples-spring-boot-consumer --build-arg APP_PORT=20880 --build-arg APP_FILE=dubbo-samples-spring-boot-consumer-1.0.jar -f ./Dockerfile -t dubbo/dubbo-samples-spring-boot-consumer:1.0 ./

#docker push dubbo/dubbo-samples-spring-boot-provider:1.0
#docker push dubbo/dubbo-samples-spring-boot-consumer:1.0



